package design_pattern.FactoryModel.Factory;

import design_pattern.FactoryModel.Product.Product;
import design_pattern.FactoryModel.Product.ProductA;

/**
 * @Description
 * @Author yangshunjie
 * @Date 2021/9/20
 */
public class FactoryForA extends Factory{

    @Override
    public Product buildProduct() {
        ProductA productA = new ProductA();
        productA.setName("产品A");
        productA.setNum("5");
        return productA;
    }
}
